package com.livedocumentation.client.web.description;

import com.google.gwt.user.client.ui.VerticalPanel;
import com.livedocumentation.client.GWTEntryPoint;
import com.livedocumentation.client.model.ProjectClass;
import com.livedocumentation.client.web.comments.CommentsForm;
import com.livedocumentation.client.webservices.comments.RequestListComments;

public class FeaturePanel extends VerticalPanel {

	public static VerticalPanel vpCommentsList = new VerticalPanel();

	public FeaturePanel(ProjectClass entry) {

		this.setSpacing(40);

		this.add(new FeatureDescription(entry));

		this.add(new CommentsForm(GWTEntryPoint.currentProject.getProjectID(),
				entry.toString()));

		this.add(vpCommentsList);

		RequestListComments.getJsonpRequest(
				GWTEntryPoint.currentProject.getProjectID(), entry.toString());
	}
}